Skip to content

Conversation

@lqiu96
Copy link
Member

@lqiu96 lqiu96 commented Oct 14, 2025

Introduces the alternatives for each Credential subclass for GoogleCredentials.fromStream()

@lqiu96 lqiu96 requested a review from zhumin8 October 14, 2025 19:34
@lqiu96 lqiu96 requested review from a team as code owners October 14, 2025 19:34
@product-auto-label product-auto-label bot added the size: l Pull request size is large. label Oct 14, 2025
@sonarqubecloud
Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
0.0% Coverage on New Code (required ≥ 80%)

See analysis details on SonarQube Cloud

@lqiu96 lqiu96 added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Oct 23, 2025
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Oct 23, 2025
String fileType = extractFromJson(fileContents, "type");
if (fileType.equals(GoogleCredentialsInfo.EXTERNAL_ACCOUNT_CREDENTIALS.getFileType())) {
try {
return fromJson(fileContents, transportFactory);
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@zhumin8 Talked with Sai and ExternalAccountCredential.fromStream() branching off to creating the subtypes is fine to keep.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SG

String fileType = extractFromJson(fileContents, "type");
if (fileType.equals(GoogleCredentialsInfo.EXTERNAL_ACCOUNT_CREDENTIALS.getFileType())) {
try {
return fromJson(fileContents, transportFactory);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SG

@lqiu96 lqiu96 merged commit 39fdc64 into main Oct 31, 2025
26 of 27 checks passed
@lqiu96 lqiu96 deleted the remove-googlecredentials-usage branch October 31, 2025 18:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size: l Pull request size is large.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants